package com.hl.sfzy.service;

import com.hl.sfzy.entity.HeartMark;
import com.hl.sfzy.mapper.HeartMarkMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HeartMarkService {
    @Autowired
    private HeartMarkMapper heartMarkMapper;

    public List<HeartMark> getAssessmentsByUserId(Integer userId, Integer pageNo, Integer pageSize) {
        int offset = (pageNo - 1) * pageSize;
        return heartMarkMapper.getAssessmentsByUserId(userId, offset, pageSize);
    }
}
